package com.zomiot.portal.common.exception;

import lombok.Getter;

/**
 * 业务异常
 *
 * @author Joash_Yi
 */
@Getter
public class BusinessException extends RuntimeException {

    private Integer code = 400;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}